package chapter2.No2_2_synchronized同步语句块.j数据类型String的常量池特性.demo2;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/14 0014
 */
public class Main {
    public static void main(String[] args) {
        ServiceClass sc = new ServiceClass();
        ThreadA a = new ThreadA(sc);
        a.setName("a");
        ThreadB b = new ThreadB(sc);
        b.setName("b");

        a.start();
        b.start();
    }
}
